package zhtt.security.service;

import org.springframework.security.access.annotation.Secured;
import zhtt.security.domain.User;

/**
 * Created by ztt on 2018/4/30.
 */
public class SecuredUserService implements UserService {
    @Override
    @Secured({"ROLE_USER","ROLE_ADMIN"})
    public void addUser(User user) {
        System.out.println("Method was called successfully");
    }
}
